package per.mnxc.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author mnxc
 * @since 2022-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "UserID", type = IdType.ASSIGN_ID)
    private Long userid;

    /**
     * 密码
     */
    @TableField("UserPWD")
    private String userPWD;

    /**
     * 昵称
     */
    @TableField("NickName")
    private String nickname;

    /**
     * 邮箱
     */
    @TableField("UserEmail")
    private String userEmail;

    /**
     * 电话
     */
    @TableField("UserPhone")
    private String userPhone;

    /**
     * 年龄
     */
    @TableField("UserAge")
    private Integer userAge;

    /**
     * 性别 0：男 1：女
     */
    @TableField("USerSex")
    private Integer userSex;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleted;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;


}
